using System.Collections;

namespace RCS.Config;


public class AgvOption
{
    public string? Name { get; set; }
    public string? Ip { get; set; }
    public int[]? Ports { get; set; }
    public bool Enable { get; set; } = false;

}

public class AgvOptions: IEnumerable<AgvOption>
{
    public List<AgvOption>? Infos { get; set; }

    public IEnumerator<AgvOption> GetEnumerator()
    {
        return Infos?.GetEnumerator() ?? Enumerable.Empty<AgvOption>().GetEnumerator();
    }

    IEnumerator IEnumerable.GetEnumerator()
    {
        return GetEnumerator();
    }

    
}


public class GenericCronJobOptions
{
    public string? Schedule { get; set; }
}

public class AgvCacheJsonOptions
{
    public string? AgvJsonFolder { get; set; }
}


